package com.zmj.mobile.service;

import com.zmj.framework.base.service.IBaseService;
import com.zmj.mobile.entity.OrgEntity;

import java.util.List;
import java.util.Optional;

/**
 * @DATE 2024/2/1 18:53
 * @AUTHOR zhaizongwei
 */
public interface IOrgService extends IBaseService<OrgEntity> {

    List<OrgEntity> getListByParentId(String parentId);

    OrgEntity getOneByCode(String orgCode);

    OrgEntity getById(Integer id);

    Optional<OrgEntity> getByUserName(String userName);
}
